﻿using DapperExtensions.Mapper;
using MHI.DeviceManager.Interfaces;
using System;
using System.Collections.Generic;

namespace MHI.DeviceManager.Data
{
    public class DevDevicemaintenanceTMapper : ClassMapper<DevDevicemaintenanceT>
    {
        public DevDevicemaintenanceTMapper()
        {
            Table("dev_devicemaintenance_t");
            Map(f => f.Id).Column("id").Key(KeyType.Assigned);
            Map(f => f.DeviceId).Column("device_id");
            Map(f => f.MaintenanceType).Column("maintenance_type");
            Map(f => f.MaintenanceHour).Column("maintenance_hour");
            Map(f => f.MaintenanceCost).Column("maintenance_cost");
            Map(f => f.MaintenancePeriod).Column("maintenance_period");
            Map(f => f.MaintenancePeriodUnit).Column("maintenance_period_unit");
            Map(f => f.MaintenanceContent).Column("maintenance_content");
            Map(f => f.GmtCreated).Column("gmt_created");
            Map(f => f.PersonModified).Column("person_modified");
            Map(f => f.GmtModified).Column("gmt_modified");
            Map(f => f.StateInfo).Column("state_info");
            Map(f => f.IsUse).Column("is_use");

        }
    }
}